package com.woniu.outpatient.mapper;

import java.util.List;
import com.woniu.outpatient.domain.Prescription;

/**
 * 药单流水表Mapper接口
 * 
 * @author wolf-six
 * @date 2023-02-15
 */
public interface PrescriptionMapper 
{
    /**
     * 查询药单流水表
     * 
     * @param prescriptionId 药单流水表主键
     * @return 药单流水表
     */
    public Prescription selectPrescriptionByPrescriptionId(Long prescriptionId);

    /**
     * 查询药单流水表列表
     * 
     * @param prescription 药单流水表
     * @return 药单流水表集合
     */
    public List<Prescription> selectPrescriptionList(Prescription prescription);

    /**
     * 新增药单流水表
     * 
     * @param prescription 药单流水表
     * @return 结果
     */
    public int insertPrescription(Prescription prescription);

    /**
     * 修改药单流水表
     * 
     * @param prescription 药单流水表
     * @return 结果
     */
    public int updatePrescription(Prescription prescription);

    /**
     * 删除药单流水表
     * 
     * @param prescriptionId 药单流水表主键
     * @return 结果
     */
    public int deletePrescriptionByPrescriptionId(Long prescriptionId);

    /**
     * 批量删除药单流水表
     * 
     * @param prescriptionIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePrescriptionByPrescriptionIds(Long[] prescriptionIds);
}
